import Long from "long";

export interface LiveResp {
  liveList: LiveInfo[];
  totalCount: number;
}

export interface LiveInfo {
  coverUrls: string[];
  createTime: number;
  groupId: string;
  hasFansClub: boolean;
  href: string;
  likeCount: number;
  liveId: string;
  onlineCount: number;
  requestId: string;
  streamName: string;
  title: string;
  type: LiveType;
  authorId: number;
}

export interface LiveType {
  id: number;
  name: string;
  categoryId: number;
  categoryName: string;
}

export interface LiverBaseInfo {
  id: number;
  name: string;
  clubCount: number;
  followed: number;
  avatarUrl: string;
}

export interface Gift {
  user: {
    avatar: [];
    userId: Long;
    nickname: string;
    badge: string;
    userIdentity: {};
  };
  sendTimeMs: Long;
  giftId: number;
  count: number;
  combo: number;
  value: number;
  comboId: string;
  slotDisplayDurationMs: Long;
  expireDurationMs: Long;
  giftName: "香蕉" | string;
  webpPicURL: string;
  pngPicURL: string;
}

export interface Danmaku {
  content: string;
  sendTimeMs:Long;
  userInfo: { avatar: []; userId: Long; nickname: string; badge: string; userIdentity: {} };
}

export interface GiftMQ {
  id: string;
  roomId: number;
  userId: number;
  value: number;
  timestamp: number;
}
export interface DanmakuMQ {
  id: string;
  roomId: number;
  userId: number;
  timestamp: number;
}
